package com.google.android.gms.internal;

import java.lang.Thread;

final class zzabc implements Thread.UncaughtExceptionHandler {
    private /* synthetic */ Thread.UncaughtExceptionHandler zzcqz;
    private /* synthetic */ zzabb zzcra;

    zzabc(zzabb zzabb, Thread.UncaughtExceptionHandler uncaughtExceptionHandler) {
        this.zzcra = zzabb;
        this.zzcqz = uncaughtExceptionHandler;
    }

    public final void uncaughtException(Thread thread, Throwable th) {
        try {
            this.zzcra.zza(thread, th);
            if (this.zzcqz == null) {
                return;
            }
        } catch (Throwable th2) {
            if (this.zzcqz != null) {
                this.zzcqz.uncaughtException(thread, th);
            }
            throw th2;
        }
        this.zzcqz.uncaughtException(thread, th);
    }
}
